<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/templates/template_admin.xhtml">
        <ui:define name="content">
            <f:view>
                <h:form>
                    <h1><h:outputText value="More Emloyee"/></h1>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="EmployeeID:" for="employeeID" />
                        <h:outputLabel id="employeeID" value="#{emb.em.employeeID}"/>
                        <h:outputLabel value="FullName:" for="fullName" />
                        <h:outputLabel id="fulltName" value="#{emb.em.firstName} #{emb.em.lastName}" />                       
                        <h:outputLabel value="Gender:" for="gender" />
                        <h:outputLabel id="gender" value="#{emb.em.gender}"/>
                        <h:outputLabel value="Dob:" for="dob" />
                        <h:outputLabel id="dob" value="#{emb.em.dob}" title="Dob" >
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputLabel>
                        <h:outputLabel value="PhoneNumber:" for="phoneNumber" />
                        <h:outputLabel id="phoneNumber" value="#{emb.em.phoneNumber}"/>
                        <h:outputLabel value="Email:" for="email" />
                        <h:outputLabel id="email" value="#{emb.em.email}"/>
                        <h:outputLabel value="Address:" for="address" />
                        <h:outputLabel id="address" value="#{emb.em.address}"/>
                        <h:outputLabel value="Position:" for="position" />
                        <h:outputLabel id="position" value="#{emb.em.position}" />                        
                        <h:outputLabel value="DepartmentID:" for="departmentID" />
                        <h:outputLabel id="departmentID" value="#{emb.em.departmentID.name}"/>
                    </h:panelGrid>
                    <br />               
                    <h:commandButton action="List" value="Back"/>
                    <br />            
                </h:form>
            </f:view>

        </ui:define>
    </ui:composition>

</html>
